package com.ruoyi.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacher.mapper.DailyMapper;
import com.ruoyi.teacher.domain.Daily;
import com.ruoyi.teacher.service.IDailyService;

/**
 * 日报Service业务层处理
 * 
 * @author wwb
 * @date 2022-12-25
 */
@Service
public class DailyServiceImpl implements IDailyService 
{
    @Autowired
    private DailyMapper dailyMapper;

    /**
     * 查询日报
     * 
     * @param id 日报主键
     * @return 日报
     */
    @Override
    public Daily selectDailyById(Long id)
    {
        return dailyMapper.selectDailyById(id);
    }

    /**
     * 查询日报列表
     * 
     * @param daily 日报
     * @return 日报
     */
    @Override
    public List<Daily> selectDailyList(Daily daily)
    {
        return dailyMapper.selectDailyList(daily);
    }

    /**
     * 新增日报
     * 
     * @param daily 日报
     * @return 结果
     */
    @Override
    public int insertDaily(Daily daily)
    {
        return dailyMapper.insertDaily(daily);
    }

    /**
     * 修改日报
     * 
     * @param daily 日报
     * @return 结果
     */
    @Override
    public int updateDaily(Daily daily)
    {
        return dailyMapper.updateDaily(daily);
    }

    /**
     * 批量删除日报
     * 
     * @param ids 需要删除的日报主键
     * @return 结果
     */
    @Override
    public int deleteDailyByIds(Long[] ids)
    {
        return dailyMapper.deleteDailyByIds(ids);
    }

    /**
     * 删除日报信息
     * 
     * @param id 日报主键
     * @return 结果
     */
    @Override
    public int deleteDailyById(Long id)
    {
        return dailyMapper.deleteDailyById(id);
    }
}
